package com.noreply.myprecious.controller;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.noreply.myprecious.domain.DataSetDO;
import com.noreply.myprecious.mapper.DataSetMapper;
import com.noreply.myprecious.service.DataSetService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author noreply
 * @description
 * @datetime 2022/8/17 22:34
 */
@RestController
@RequestMapping("/dataSet")
public class DataSetController {
    @Autowired
    private DataSetService dataSetService;

    @Resource
    private DataSetMapper dataSetMapper;

    @GetMapping("/list")
    public List<DataSetDO> findByLimit() {
        return dataSetMapper.selectList(new QueryWrapper<>());
    }
}
